﻿using System;

namespace ThatsMeSDK
{
	/// <summary>
	/// Retrun Information of countMessages
	/// </summary>
	public class MessageCount
	{
		/// <summary>
		/// Count of all unread
		/// </summary>
		public MessageCounter Unread{get; set;}
		
		/// <summary>
		/// Count of the inbox
		/// </summary>
		public MessageCounter Inbox{get; set;}
		
		/// <summary>
		/// Count of the outbox
		/// </summary>
		public MessageCounter Outbox{get; set;}
		
		/// <summary>
		/// Creates a new MessageCount
		/// </summary>
		public MessageCount()
		{
		}
		
		/// <summary>
		/// Defines the count fields
		/// </summary>
		public class MessageCounter
		{
			/// <summary>
			/// Number of messages
			/// </summary>
			public int Messages{get; private set;}
			
			/// <summary>
			/// Number of notifications
			/// </summary>
			public int Notifications{get; private set;}
			
			/// <summary>
			/// Total number
			/// </summary>
			public int Total{get; private set;}
			
			/// <summary>
			/// Creates a new MessageCounter
			/// </summary>
			/// <param name="messages">Number of messages</param>
			/// <param name="notifications">Number of notifications</param>
			/// <param name="total">Total number</param>
			public MessageCounter(int messages, int notifications, int total)
			{
				this.Messages = messages;
				this.Notifications = notifications;
				this.Total = total;
			}
		}
	}
}
